package com.wzx.core.ioc.context;

import com.wzx.core.ioc.anootaction.Autowired;
import com.wzx.core.utils.ClassUtil;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;

public class ReferPropertyValue implements PropertyValue {
    private String refBeanName;
    private Class refBeanClass;

    public <T extends Annotation> ReferPropertyValue(Field field) {
        refBeanName = ClassUtil.firstWordLower(field.getName());
        refBeanClass = field.getType();
    }

    public String getRefBeanName() {
        return refBeanName;
    }

    public void setRefBeanName(String refBeanName) {
        this.refBeanName = refBeanName;
    }
}
